﻿using System.IO;
using IterationLife.System.Models;
using Util.Iocs;

namespace IterationLife.System.Services
{
    /// <summary>
    /// 附件管理
    /// </summary>
    public interface IAttachmentManager : IDependency
    {
        /// <summary>
        /// 上传
        /// </summary>
        Attachment Upload(string id);
        /// <summary>
        /// 上传
        /// </summary>
        Attachment Upload(byte[] fileBytes, int size, string fileName);
        /// <summary>
        /// 上传
        /// </summary>
        Attachment Upload(Stream inputStream,int size,string fileName);
    }
}
